﻿
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>engage_resumeSp</title>
    <script src="~/lib/axios/dist/axios.js"></script>
    <script src="~/lib/vue/dist/vue.js"></script>
    <script src="~/lib/element-ui/lib/index.js"></script>
    <link href="~/lib/element-ui/lib/theme-chalk/index.css" rel="stylesheet" />
</head>
<body>
    <div id="app">
        <el-container>
            <el-header>
                <el-card class="box-card">
                    <el-col :span="2"> 录用审批 </el-col><el-col :span="4" :offset="21"> 当前审批人数：{{total}}例 </el-col>
                </el-card>
            </el-header>
            <el-main>
                <el-card class="box-card">
                    <el-table :data="list" style="width: 100%" border stripe>
                        <el-table-column prop="human_name"
                                         label="姓名"
                                         align="center">
                        </el-table-column>
                        <el-table-column prop="human_sex"
                                         label="性别"
                                         align="center">
                        </el-table-column>
                        <el-table-column prop="human_age"
                                         label="年龄"
                                         align="center">
                        </el-table-column>
                        <el-table-column prop="human_major_kind_name"
                                         label="职位类别"
                                         align="center">
                        </el-table-column>
                        <el-table-column prop="human_major_name"
                                         label="职位名称"
                                         align="center">
                        </el-table-column>
                        <el-table-column prop="human_college"
                                         label="毕业院校"
                                         align="center">
                        </el-table-column>
                        <el-table-column prop="human_educated_major"
                                         label="学历专业"
                                         align="center">
                        </el-table-column>
                        <el-table-column label="操作" align="center">
                            <template slot-scope="scope">
                                <el-button size="mini" type="primary" @@click="cz(scope.row)">审批</el-button>
                            </template>
                        </el-table-column>
                    </el-table>

                    <el-row>
                        <el-col :span="1">
                            <el-pagination v-on:size-change="handleSizeChange"
                                           v-on:current-change="handleCurrentChange"
                                           :current-page="queryinfo.currentPage"
                                           :page-sizes="[1, 2, 3, 4]"
                                           :page-size="queryinfo.pageSize"
                                           layout="total, sizes, prev, pager, next, jumper"
                                           :total="total">
                            </el-pagination>
                        </el-col>
                    </el-row>
                </el-card>
            </el-main>
        </el-container>
    </div>
    <script type="text/javascript">
        var vm = new Vue({
            el: "#app",
            data: {
                list: [],//简历,面试
                queryinfo: {
                    currentPage: 1,//当前页
                    pageSize: 3//总页数
                },
                total: 1,//总条数
            },
            methods: {
                cz(row) {
                    location.href = "/engage_resumeSp/engage_resumeSpUpdate/" + row.res_id;
                },
                fill() {
                      //简历登记录用审批查询
                    axios.get('/engage_resumeSp/QuqerSp', {
                        params: {
                            currentPage: this.queryinfo.currentPage,
                            pageSize: this.queryinfo.pageSize
                        }
                    })
                        .then(res => {
                            console.info(res);
                            this.list = res.data.Data;
                            this.total = res.data.Row;
                        })
                        .catch(err => {
                            console.info(err);
                        });
                },
                //分页总页数改变事件
                handleSizeChange(val) {
                    this.queryinfo.pageSize = val;
                    this.fill();
                },
                //分页当前页改变事件
                handleCurrentChange(val) {
                    this.queryinfo.currentPage = val;
                    this.fill();
                }
            },
            //可以对vue的数据和方法进行操作,不能对DOM进行操作
            created: function () {
                this.fill();
            }
        });
    </script>
    <style scoped>
        .el-card__body {
            padding: 35px;
        }
        .el-col-2 {
            width: 8.33333%;
            font-size: 15px;
            font-weight: 900;
            line-height: 0px;
        }

        .el-col-4 {
            font-size: 1px;
            font-weight: 300;
            color: rgb(83, 83, 83);
            line-height: 0px;
        }

        element.style {
            height: 100%;
            width: 1239px;
        }

        .el-button.is-circle {
            border-radius: 50%;
            padding: 12px;
            position: relative;
            top: -10px;
            right: -570px;
        }
    </style>
</body>
</html>
